import Test.Text;

public class Person {
    private String name = "bit";

    public int age = 18;
    public Person()
    {
        this("bit",18);
    }

    public Person(String name, int age){
        this.name = name;
        this.age = age;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getname(){
        return this.name;
    }

    public void show(){
        System.out.println("姓名"+name+"年龄"+age);
    }
}

class Test{
    public static void main(String[] args) {
        Person person = new Person();
        //person.name;  err被pravate修饰 无法在不同类中访问
        person.setName("wangwu");
        person.age = 18;
        person.show();
        System.out.println(person.getname());
        Text test = new Text();
         java.util.Date date = new java.util.Date();
    }

}